package com.leyou.test1.Demo2;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class L {
    public static void main(String[] args) {

        LocalDateTime lt = LocalDateTime.now();
        LocalDateTime lt2 = LocalDateTime.of(LocalDate.now(), LocalTime.of(7, 0, 0));
        LocalDateTime lt3 = LocalDateTime.of(LocalDate.now(), LocalTime.of(21, 0, 0));
        System.out.println(lt);
        System.out.println(lt2);
        System.out.println(lt3);
        boolean xx = lt.isBefore(lt2) || lt.isAfter(lt3);

    }
}
